import Vue from 'vue';
import * as dayjs from 'dayjs'
import * as relativeTime from 'dayjs/plugin/relativeTime' // import plugin
import 'dayjs/locale/zh-cn' // import locale
dayjs.extend(relativeTime) // use plugin
dayjs.locale('zh-cn') // use locale
Vue.filter('latetime',data=>{
  return  dayjs().to(dayjs(data))
})